//1.注册组件【引入组件】
import { createRouter, createWebHashHistory } from 'vue-router'
//@:表示src文件夹

import Home from '@/components/home/Home'
import Play from '@/components/play/Play'
import Free from '@/components/free/Free'

//2.定义路由规则

const routes = [
 {
	 path:'/',
	  name:'Home',
	component:Home,
 },
 {
 	 path:'/play',
 	  name:'play',
 	component:Play,
 },
 {
 	 path:'/free',
 	  name:'free',
 	component:Free,
 },
]

const router = createRouter({
  history: createWebHashHistory(),
  routes
})

export default router
